<?php
/* $Id: issues.php,v 1.2 2003/10/08 07:19:34 tuxmonkey Exp $ */
/**
 * @package Issue-Tracker
 * @subpackage Issues
 */

if (strpos($_SERVER['PHP_SELF'],basename(__FILE__)) !== false) {
  print "Direct module access forbidden.";exit;}

// if the user belongs to multiple groups make them select
// which groups issues they want to view
if($_SESSION['group_count'] > 1 or is_manager()){
	redirect("?module=issues&action=choose");
} else {
	// otherwise assign gid as the only group and include
	// the group issues file
	$gid = $_SESSION['groups'][0];
	redirect("?module=issues&action=group&gid=$gid");
}
?>
